/*
 *  Copyright © 2011 by Rob Cash
 * 
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 * 
 *       http://www.apache.org/licenses/LICENSE-2.0
 * 
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 * 
 * BookmarkServiceDescriptor.java
 * 
 * Created on Jun 20, 2011 at 10:43:28 PM
 */
package org.robcash.apps.bookmarksync.provider;

/**
 * Bookmark service descriptor
 * @author Rob Cash
 */
public interface BookmarkServiceDescriptor
{
    /**
     * Get the name of the service
     * @return Service name
     */
    String getServiceName();

    /**
     * Indicates if the service provider is only capable of reading data
     * @return <tt>true</tt> if the service provider does not allow updates
     */
    boolean isReadOnly();

    /**
     * Indicates if the service provider requires the user to authenticate
     * @return <tt>true</tt> if the user must authenticate in order to use the
     * provider
     */
    boolean isLoginRequired();

    /**
     * Indicates if the service provider maintains a stateful session
     * @return <tt>true</tt> if the service provider maintains a stateful session
     */
    boolean isStateful();

    /**
     * Indicates if the service provider supports the specified feature
     * @param featureId Feature
     * @return {@code true} if the feature is supported
     */
    boolean supportsFeature(String featureId);

}
